package com.lm.activiti.boot.design_pattern.strategy;

import com.lm.activiti.boot.design_pattern.strategy.dto.AttenClockDto;
import com.lm.activiti.boot.design_pattern.strategy.service.AttenService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * @author lm_jcf
 * @date 2020/6/22 17:43
 */
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration({"classpath*:applicationContext.xml"})
@Component
public class StrategyMain {

    @Autowired
    private AttenService attenService;

    @Test
    public void studentAtten(){
        AttenClockDto dto = new AttenClockDto();
        dto.setRoleType(4);
        attenService.attenService(dto);
    }
}
